
package com.bstek.urule.runtime.event.impl;

import com.bstek.urule.model.flow.ins.ProcessInstance;
import com.bstek.urule.runtime.KnowledgeSession;
import com.bstek.urule.runtime.event.ProcessEvent;

/**
 * @author Jacky.gao
 * @since 2015年7月21日
 */
public class DefaultProcessEvent implements ProcessEvent {
    private ProcessInstance processInstance;
    private KnowledgeSession knowledgeSession;

    public DefaultProcessEvent(ProcessInstance processInstance, KnowledgeSession knowledgeSession) {
        this.processInstance = processInstance;
        this.knowledgeSession = knowledgeSession;
    }

    @Override
    public KnowledgeSession getKnowledgeSession() {
        return knowledgeSession;
    }

    @Override
    public ProcessInstance getProcessInstance() {
        return processInstance;
    }
}
